Optimal. Leaf size=92 \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.158581, antiderivative size = 92, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 8, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5 \[ -\frac{1}{4} d \log \left (x^2-x+1\right )+\frac{1}{4} d \log \left (x^2+x+1\right )-\frac{d \tan ^{-1}\left (\frac{1-2 x}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{d \tan ^{-1}\left (\frac{2 x+1}{\sqrt{3}}\right )}{2 \sqrt{3}}+\frac{e \tan ^{-1}\left (\frac{2 x^2+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x)/(1 + x^2 + x^4),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 21.704, size = 95, normalized size = 1.03 \[ - \frac{d \log{\left (x^{2} - x + 1 \right )}}{4} + \frac{d \log{\left (x^{2} + x + 1 \right )}}{4} + \frac{\sqrt{3} d \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} - \frac{1}{3}\right ) \right )}}{6} + \frac{\sqrt{3} d \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x}{3} + \frac{1}{3}\right ) \right )}}{6} + \frac{\sqrt{3} e \operatorname{atan}{\left (\sqrt{3} \left (\frac{2 x^{2}}{3} + \frac{1}{3}\right ) \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x+d)/(x**4+x**2+1),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.325108, size = 98, normalized size = 1.07 \[ \frac{1}{6} i \left (\sqrt{6-6 i \sqrt{3}} d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}-i\right ) x\right )-\sqrt{6+6 i \sqrt{3}} d \tan ^{-1}\left (\frac{1}{2} \left (\sqrt{3}+i\right ) x\right )+2 i \sqrt{3} e \tan ^{-1}\left (\frac{\sqrt{3}}{2 x^2+1}\right )\right ) \]
Warning: Unable to verify antiderivative.
[In] Integrate[(d + e*x)/(1 + x^2 + x^4),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.008, size = 92, normalized size = 1. \[{\frac{d\ln \left ({x}^{2}+x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{\sqrt{3}e}{3}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{3}}{3}} \right ) }-{\frac{d\ln \left ({x}^{2}-x+1 \right ) }{4}}+{\frac{d\sqrt{3}}{6}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) }+{\frac{\sqrt{3}e}{3}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{3}}{3}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x+d)/(x^4+x^2+1),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.782779, size = 88, normalized size = 0.96 \[ \frac{1}{6} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac{1}{4} \, d \log \left (x^{2} - x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.267046, size = 93, normalized size = 1.01 \[ \frac{1}{12} \, \sqrt{3}{\left (\sqrt{3} d \log \left (x^{2} + x + 1\right ) - \sqrt{3} d \log \left (x^{2} - x + 1\right ) + 2 \,{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + 2 \,{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 6.45709, size = 923, normalized size = 10.03 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x+d)/(x**4+x**2+1),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.281183, size = 90, normalized size = 0.98 \[ \frac{1}{6} \, \sqrt{3}{\left (d - 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x + 1\right )}\right ) + \frac{1}{6} \, \sqrt{3}{\left (d + 2 \, e\right )} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, x - 1\right )}\right ) + \frac{1}{4} \, d{\rm ln}\left (x^{2} + x + 1\right ) - \frac{1}{4} \, d{\rm ln}\left (x^{2} - x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x + d)/(x^4 + x^2 + 1),x, algorithm="giac")
[Out]